package com.jxzn.locust.model;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "sys_role")
public class Role extends AbstractNamedModel {
    /**
    * 
    */
    private static final long serialVersionUID = 1L;
    /** 是否是超级管理员 */
    Boolean master;
    /** 权限列表 */
    @Transient
    List<RoleResource> resourceList;
}
